{if $config['iscomm']==1 }
{if ($system['fenxiao01'] >0 || $system['fenxiao04'] ==1 || $system['fenxiao05'] ==1 || $system['fenxiao07'] ==1 || $system['fenxiao08'] ==1)}

<link href="{$_G['URL']['APP_IMAGE']}rank5/rank.css?v=5" rel="stylesheet" type="text/css"/>

<meta content="telephone=no" name="format-detection"/>
<script type="text/javascript" src="{$_G['URL']['APP_IMAGE']}rank5/tab.js"></script>
{if !empty($config['commlistbg1'])}
<style type="text/css">
  .page-rank.yellow {
    background: {$config['commlistbg1']};
  }
  .box {
    background-color: {$config['commlistbg2']};
  }
</style>
{/if}
<div class="fui-page page-rank yellow fui-page-current" style="overflow:auto;" id="fui-page-1484552738384">
                <div class="fui-content">
                        <div class="title" style="padding: 0.5rem 0.5rem 0; text-align: center;" ><img style="width: 100%;" src="{php echo empty($config['commlistimg'])?$_G['URL']['APP_IMAGE']."rank5/rank.png":$config['commlistimg'];}"> </div>
                    <div class="ranklist">
                        <div class="main">
    <section class="aui-scrollView">
        <div class="aui-tab" data-ydui-tab>
          {if $config['iscommshow24']==1}
            <ul class="tab-nav">
                <li class="tab-nav-item tab-active">
                    <a href="javascript:;">
                        <span>总&#25490;行榜</span>
                    </a>
                </li>
                <li class="tab-nav-item">
                    <a href="javascript:;">
                        <span>24小时&#25490;行榜</span>
                    </a>
                </li>
            </ul>
            {/if}
            <div class="tab-panel" style="text-align: center;">
                <div class="tab-panel-item tab-active">
                    {loop $commslist $cindexno $row}
                        <section class="box">
                          <section class="col_1" title="{php echo $cindexno+1;}">{php echo $cindexno+1;}</section>
                          <section class="col_2"><img src="{php echo tomedia($row['avatar']);}"  /></section>
                          <section class="col_3">{if empty($row['nickname'])}null{$row['uid']}{else}{php echo mb_substr($row['nickname'],0,5,'utf-8');}{/if}</section>

                          {if $config['isrankrenshu']==0}
                              <section class="col_4">{$row['commcount']}个</section>
                          {/if}
                          {if $config['isrankqianshu']==0}
                            <section class="col_5">{$row['feesum']}元</section>
                          {/if}
                        </section>
                    {/loop}
<!--                     {if $commssum>0}
                    <div id="btn-more" class="btn  btn-danger" style="width: 45%; background: #f95252;border: 1px solid #e54d4d;" tag="1">我的&#32418;&#x5305;【{$commssum}】</div>
                    {/if}
                    <div id="btn-more" class="btn  btn-danger" style="width: {php echo $commssum>0?45:96;}%; background: #f9820d;border: 1px solid #df760e;" tag="1">加载更多</div> -->
                </div>
                <div class="tab-panel-item">
                    {loop $commslisttoday $cindexno $row}
                        <section class="box">
                          <section class="col_1" title="{php echo $cindexno+1;}">{php echo $cindexno+1;}</section>
                          <section class="col_2"><img src="{php echo tomedia($row['avatar']);}"  /></section>
                          <section class="col_3">{if empty($row['nickname'])}null{else}{php echo mb_substr($row['nickname'],0,4,'utf-8');}{/if}</section>
                          {if $config['isrankrenshu']==0}
                          <section class="col_4">{$row['commcount']}人</section>
                          {/if}
                          {if $config['isrankqianshu']==0}
                          <section class="col_5">{$row['feesum']}元</section>
                          {/if}
                        </section>
                    {/loop}
                </div>
                    {if $commssum>0 && $config['ismycomm']==0 || $config['ismycomm']==1 }
                    <div id="btn-more" class="btn  btn-danger" style="width: 85%; background: #f95252;border: 1px solid #f04e31;" tag="1"><a style="color: #ffffff" href="{php echo $_G['siteroot'].createMobileUrl('mycomm',array('themeid'=>$themeid));}">我的&#32418;&#x5305;【{$commssum}元】</a></div>
                    {/if}
            </div>
        </div>
    </section>
                        </div>
                    </div>
                </div>
            </div>
{/if}
{/if}